package org.example.spring.carsalemanagementsystem.service;

import org.example.spring.carsalemanagementsystem.entity.Commodity;
import org.example.spring.carsalemanagementsystem.utils.Page;
import org.example.spring.carsalemanagementsystem.vo.CommodityFuzzyVo;
import org.example.spring.carsalemanagementsystem.vo.CommodityVo;

import java.util.List;

public interface CommodityService {
    void deleteById(String carid);
    void insertOne(Commodity commodity);
    void updateById(Commodity commodity);
    Page<Commodity> findPages(Long pageNum, Long pageSize);//分页查询所有
    Page<Commodity> findPagesByKey(CommodityFuzzyVo vo);//模糊查询
    List<CommodityVo> findList();
    List<CommodityVo> findListByKey(String key);

}